<template>
  <div class="health-test-date-root">
    <el-table :data="tableData"
    height="550"
    v-loading.body="loading"
    element-loading-text="新联为您加载数据中"
    border
    >
      <el-table-column
              prop="time"
              label="发送时间"
              sortable
              width="200"
              >
      </el-table-column>
      <el-table-column
              prop="text"
              label="发送内容"
              >
      </el-table-column>

    </el-table>
  </div>
</template>

<script>
export default{
  name: 'health-health-7timeReport',
  data () {
    return {
      tableData: [],
      loading: true
    }
  },
  methods: {
    fetchData () {
      this.$http({
        method: 'POST',
        url: 'http://api.xltest.cn/sryk/7timeReport',
        data: {
          uid: 123
        }
      }).then(data => {
        var res = data.body
        console.log(res)
        this.tableData = res.time7Report
        this.loading = false
      })
    }
  },
  created () {
    this.fetchData()
  },
  beforeRouteEnter: (to, from, next) => {
    next(vm => {
    })
  }

}

</script>